package com.itheima.job;

import java.util.HashMap;
import java.util.Scanner;

public class Test09 {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String s = sc.nextLine();
        HashMap<String,Integer> map = new HashMap<>();
        char[] chars = s.toCharArray();

        //遍历chars字符数组
            //判断它是什么
        for (char aChar : chars) {
            if ((aChar>='A'&&aChar<='Z')||(aChar>='a'&& aChar<='z')){
                method(map,"字母");
            }else
            if (aChar>='0'&& aChar<='9'){
                method(map,"数字");
            }else
            if (aChar==' '){
                method(map,"空格");
            }else {
                method(map,"其它");
            }
        }


        System.out.println(map);
    }
    public static void method(HashMap<String,Integer> map,String key){
        Integer i = map.get(key);
        if (i == null){
            map.put(key,1);
        }else {
            map.put(key,++i);
        }
    }
}
